﻿namespace Paw.Phone.ViewModel
{
    public class MainPageViewModel : BaseViewModel
    {
        private ListBlobsPageViewModel listBlobsPageViewModel;
        private SampleDataTablePageViewModel sampleDataTablePageViewModel;
        private TablesPageViewModel tablesPageViewModel;
        private ListQueuesPageViewModel listQueuesPageViewModel;
        private NotificationsPageViewModel notificationsPageViewModel;

        public ListBlobsPageViewModel ListBlobsPageViewModel
        {
            get
            {
                if (this.listBlobsPageViewModel == null)
                {
                    this.listBlobsPageViewModel = new ListBlobsPageViewModel();
                }

                return this.listBlobsPageViewModel;
            }

            set
            {
                this.listBlobsPageViewModel = value;
            }
        }

        public SampleDataTablePageViewModel SampleDataTablePageViewModel
        {
            get
            {
                if (this.sampleDataTablePageViewModel == null)
                {
                    this.sampleDataTablePageViewModel = new SampleDataTablePageViewModel();
                }

                return this.sampleDataTablePageViewModel;
            }

            set
            {
                this.sampleDataTablePageViewModel = value;
            }
        }

        public TablesPageViewModel TablesPageViewModel
        {
            get
            {
                if (this.tablesPageViewModel == null)
                {
                    this.tablesPageViewModel = new TablesPageViewModel();
                }

                return this.tablesPageViewModel;
            }

            set
            {
                this.tablesPageViewModel = value;
            }
        }

        public NotificationsPageViewModel NotificationsViewModel
        {
            get
            {
                if (this.notificationsPageViewModel == null)
                {
                    this.notificationsPageViewModel = new NotificationsPageViewModel();
                }

                return this.notificationsPageViewModel;
            }

            set
            {
                this.notificationsPageViewModel = value;
            }
        }

        public ListQueuesPageViewModel ListQueuesPageViewModel
        {
            get
            {
                if (this.listQueuesPageViewModel == null)
                {
                    this.listQueuesPageViewModel = new ListQueuesPageViewModel();
                }

                return this.listQueuesPageViewModel;
            }

            set
            {
                this.listQueuesPageViewModel = value;
            }
        }
    }
}
